package com.smart.community.region.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 店铺业主关联DTO
 * 
 * @author Wu.Liang
 * @version 1.0.0
 * @since 2025-01-30
 */
@Data
@Schema(description = "店铺业主关联DTO")
public class ShopOwnerRelationDTO implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @Schema(description = "关联ID")
    private Long id;
    
    @NotNull(message = "店铺ID不能为空")
    @Schema(description = "店铺ID", example = "1")
    private Long shopId;
    
    @NotNull(message = "业主ID不能为空")
    @Schema(description = "业主ID", example = "1")
    private Long ownerId;
    
    @NotNull(message = "关系类型不能为空")
    @Schema(description = "关系类型：1-业主，2-租户，3-联合业主", example = "1")
    private Integer relationType;
    
    @Schema(description = "所有权比例（百分比）", example = "100.00")
    private BigDecimal ownershipRatio;
    
    @Schema(description = "租赁开始日期", example = "2025-01-01")
    private LocalDate leaseStartDate;
    
    @Schema(description = "租赁结束日期", example = "2025-12-31")
    private LocalDate leaseEndDate;
    
    @Schema(description = "租金价格", example = "5000.00")
    private BigDecimal rentPrice;
    
    @Schema(description = "押金金额", example = "10000.00")
    private BigDecimal depositAmount;
    
    @Size(max = 50, message = "合同编号长度不能超过50个字符")
    @Schema(description = "合同编号", example = "HT202501300001")
    private String contractNumber;
    
    @Schema(description = "合同文件信息")
    private String contractFile;
    
    @Schema(description = "是否主要联系人：0-否，1-是", example = "1")
    private Integer isPrimary;
    
    @Schema(description = "状态：0-禁用，1-启用", example = "1")
    private Integer status;
    
    @Size(max = 500, message = "备注长度不能超过500个字符")
    @Schema(description = "备注", example = "备注信息")
    private String remark;
}